<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <f:facet name="first">
            <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
            <meta name="apple-mobile-web-app-capable" content="yes"/>
        </f:facet>
        <h:outputStylesheet library="css" name="main.css"/>
        <h:outputScript library="js" name="main.js"/>
        <ui:insert name="head">
            <title>云驼科技</title>
        </ui:insert>
    </h:head>
    <h:body>
        <ui:insert name="menu">
            <ui:include src="/menu.xhtml"/>
        </ui:insert>

        <h:form id="fm" class="mainfm">
            <ui:insert name="form"/>
            <h2>商铺仓库设置</h2>
            <p:separator /> 
            <p:growl id="growl" showDetail="true" sticky="true" keepAlive="1"/>  
            <p:layout style="min-width:400px;min-height:600px;">
                <p:layoutUnit position="north" size="45">
                    <p:outputLabel value="搜索Lazy加载设置"></p:outputLabel>
                    
                </p:layoutUnit>
                <p:layoutUnit position="center">
                    <p:dataTable id="condistributorWarehouse" var="condistributorWarehouse" value="#{setCondistributorWarehouse.condistributorWarehouses}" widgetVar="condistributorWarehouseTable"
                                 emptyMessage="无数据" filteredValue="#{setCondistributorWarehouse.filterCondistributorWarehouses}">

                        <p:column filterBy="#{condistributorWarehouse.distributId}" headerText="序号" filterMatchMode="contains">
                            <h:outputText value="#{condistributorWarehouse.distributId}" />
                        </p:column>
                        
                        <p:column filterBy="#{condistributorWarehouse.warehouseAdress}" headerText="仓库地址"  filterMatchMode="contains">
                            <h:outputText value="#{condistributorWarehouse.warehouseAdress}" />
                        </p:column>
                        
                    </p:dataTable>
                </p:layoutUnit>
            </p:layout>
            
            <ui:insert name="growl">
                <p:growl globalOnly="true" showDetail="true" sticky="true">
                    <p:autoUpdate/>
                </p:growl>
            </ui:insert>
            <!-- 禁用掉输入框默认的回车提交事件 -->
            <p:commandButton id="my_dftCmdBtn" type="button" style="position: fixed;bottom: 0;right: 0;visibility: hidden;"/>
            <p:defaultCommand target="my_dftCmdBtn"/>
        </h:form>

        <ui:insert name="outer"/>
        <p:tooltip position="left"/>
        <p:confirmDialog id="cfmDlg" styleClass="cfmDlg" global="true" closeOnEscape="true" header="确认框" responsive="true">
            <p:commandButton value="确定" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
            <p:commandButton value="取消" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
        </p:confirmDialog>
    </h:body>
</html>
